package z_app_lotto;

import java.awt.*;
import java.util.*;
import javax.swing.*;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2007</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class Sim1 extends JPanel {
    Vector v;
    JScrollPane jScrollPane1 = new JScrollPane();
    BorderLayout borderLayout1 = new BorderLayout();
    JTextArea jTextArea1 = new JTextArea();
    public Sim1(Vector v) {
        try {
            this.v = v;
            jbInit();
            listData();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        this.setLayout(borderLayout1);
        jTextArea1.setText("jTextArea1");
        this.add(jScrollPane1, java.awt.BorderLayout.CENTER);
        jScrollPane1.getViewport().add(jTextArea1);
    }

    public void listData(){
        String str=null;
        this.jTextArea1.setText("");
        for(int i=0 ; i<v.size(); i++){
           str = (String)v.elementAt(i);
           this.jTextArea1.append(str + "\n");

        }
    }




}
